home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / DopeSheetEdMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.8 KB  |  93 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  June 14, 1996
  22. //  Author:         mm
  23. //
  24. //  Description:
  25. //      This script creates popup menu items for the dope sheet editor.
  26. //
  27. //  Input Arguments:
  28. //      The dope sheet editor that the menu will belong to.
  29. //
  30. //  Return Value:
  31. //      None.
  32. //
  33.  
  34. global proc
  35. DopeSheetEdMenu (string $dopeSheetEd)
  36. {
  37.     // Find the name of the associated outliner
  38.     //
  39.     string $outlineEd = `dopeSheetEditor -query -outliner $dopeSheetEd`;
  40.     // Load in the common menu elements library
  41.     //
  42.     loadAnimMenuLibrary;
  43.     // Create the popup menu
  44.     //
  45.     popupMenu
  46.         -ctrlModifier false
  47.         -button 3
  48.         -parent $dopeSheetEd;
  49.  
  50.     // Create the main menu items
  51.     //
  52.     menuItem -label "Edit"
  53.         -allowOptionBoxes true
  54.         -subMenu true
  55.         -tearOff true
  56.         editHierItem;
  57.         defineEditMenu $outlineEd $dopeSheetEd "editHierItem" "noOptions" ""; 
  58.     setParent -m ..;
  59.  
  60.     string $viewItem = `menuItem -label "View"
  61.         -allowOptionBoxes false
  62.         -subMenu true
  63.         -tearOff true`;
  64.     menuItem -edit
  65.         -postMenuCommand ("buildDopeSheetEdViewMenu " + $dopeSheetEd + " " + $viewItem)
  66.         $viewItem;
  67.     setParent -menu ..;
  68.  
  69.     menuItem -divider true;
  70.  
  71.     string $curvesItem = `menuItem -label "Curves" -allowOptionBoxes true -subMenu true -tearOff true`;
  72.         defineCurvesMenu $outlineEd $dopeSheetEd $curvesItem "noOptions" ""; 
  73.     setParent -menu ..;
  74.  
  75.     string $keysItem = `menuItem -label "Keys" -allowOptionBoxes true -subMenu true -tearOff true`;
  76.         buildDopeSheetEdKeysMenu $outlineEd $dopeSheetEd $keysItem; 
  77.     setParent -menu ..;
  78.  
  79.     string $tangentsItem = `menuItem -label "Tangents" -subMenu true -tearOff true`;
  80.         defineTangentsMenu $outlineEd $dopeSheetEd $tangentsItem "noOptions" ""; 
  81.     setParent -menu ..;
  82.  
  83.     menuItem -divider true;
  84.  
  85.     string $menuItem = `menuItem -label "List"
  86.         -allowOptionBoxes false
  87.         -subMenu true
  88.         -tearOff true
  89.         optionsHierItem`;
  90.         defineListMenu "useHier" $outlineEd $dopeSheetEd $menuItem ""; 
  91.     setParent -m ..;
  92. }
  93.